﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SmartSpace.Core;

namespace SmartSpace.Data.AutoInput
{
    public class GuidConvertor : IDataConvertor
    {
        public object Convert(string value)
        {
            return new Guid(value);
        }

        public string Convert(object value)
        {
            return ((Guid)value).ToString("N");
        }

        public void Default(User user, out string text, out object value)
        {
            text = string.Empty;
            value = null;
        }
    }
}
